package com.longzongqin.demo.service.impl;

import com.longzongqin.demo.service.UploaderService;
import com.longzongqin.demo.utils.UploaderUtil;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author longzongqin
 * @since 2018-03-17
 */
@Service
public class UploaderServiceImpl implements UploaderService {

    @Override
    @Async
    public void merge(Integer chunks, String md5File, String name) {

        try {
            UploaderUtil.merge(chunks,md5File,name);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
